package com.caine.disr.handler;

import com.caine.disr.entity.RingEvent;
import com.lmax.disruptor.EventHandler;
import com.lmax.disruptor.WorkHandler;

public class RingEventHandler implements EventHandler<RingEvent>, WorkHandler<RingEvent> {

    @Override
    public void onEvent(RingEvent event, long sequence, boolean endOfBatch) throws Exception {
        this.onEvent(event);
    }

    @Override
    public void onEvent(RingEvent event) throws Exception {
        //TODO
        System.out.println("event = " + event);
    }
}
